import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/home'
import ProductList from '@/views/ProductList'
import ProductListFixCondition from '@/views/ProductListFixCondition'
import Register from '@/views/Register'
import about from '@/views/about'
import protocol from '@/views/protocol'
import MarketList from '@/views/MarketList'
import MarketFix from '@/views/MarketFix'
import MarketMenu from '@/views/MarketMenu'
import ShopDetail from '@/views/ShopDetail'
import ProtocolMj from '@/views/ProtocolMj'
import Help from '@/views/Help'
import WxPage from '@/views/WxPage'
import protocoldt from '@/views/protocoldt'
import pdts from '@/views/pdts'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    }, 
    {
      path: '/product',
      name: 'ProductList',
      component: ProductList
    },
    {
      path: '/cdproduct',
      name: 'ProductListFixCondition',
      component: ProductListFixCondition
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/about',
      name: 'about',
      component: about
    },
    {
      path: '/protocol',
      name: 'protocol',
      component: protocol
    },
    {
      path: '/market',
      name: 'MarketList',
      component: MarketList
    },
    {
      path: '/marketFix',
      name: 'MarketFix',
      component: MarketFix
    },
    {
      path: '/marketMenu',
      name: 'MarketMenu',
      component: MarketMenu
    },
    {
      path: '/shopDetail',
      name: 'ShopDetail',
      component: ShopDetail
    },
    {
      path: '/protocolmj',
      name: 'ProtocolMj',
      component: ProtocolMj,
      meta: {
        title:"注册协议"
      }
    },{
      path: '/help',
      name: 'Help',
      component: Help,
      meta: {
        title:"帮助中心"
      }
  },{
      path: '/wxpage',
      name: 'wxpage',
      component: WxPage
    },{
      path: '/protocoldt',
      name: 'protocoldt',
      component: protocoldt
    },{
      path: '/pdts',
      name: 'pdts',
      component: pdts
    }
  ]
})
